package com.smartleanx.module.hrm.eums.payroll;

import com.smartleanx.framework.common.core.IntArrayValuable;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

@Getter
@AllArgsConstructor
public enum PayrollSendStatusEnum implements IntArrayValuable {

    UNSENT(1, "未发送"),
    SENT(2, "已发送"),
    WITHDRAW(3, "已撤回");

    private final Integer value;
    private final String name;


    public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(PayrollSendStatusEnum::getValue).toArray();

    @Override
    public int[] array() {
        return ARRAYS;
    }
}
